.dialogue-panel {
    margin: 10px 0px;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
}


.assistant-message-block {
    margin: 8px 20px;
}

.assistant-message-block div p {
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.5;
}

.assistant-message-block ol ul {
    margin: 6px 0;
}

.assistant-message-block ol li {
    margin: 6px 0;
}


.user-message-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin: 8px 20px;
}

.user-message-bubble {
    box-sizing: border-box;
    padding: 10px 20px;
    border-radius: 24px;
    max-width: 500px;
    white-space: pre-wrap;
    /* 保留空白字符和换行符，同时允许文本在必要时换行。 */
    height: auto;
    background-color: #2f2f2f;
}


.dialogue-panel-message-action-bar {
    display: flex;
    color: #707070;
    transition: opacity 0.1s ease, visibility 0.1s ease;
}

.dialogue-panel-message-action-bar div {
    cursor: pointer;
    padding: 2px 5px;
    margin: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dialogue-panel-message-action-bar div:hover {
    color: #a0a0a0;
}


.user-message-bubble-editing {
    display: flex;
    flex-direction: column;

}

.user-message-bubble-editing textarea {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    border: 0;
    padding: 0;
    margin: 0;
    line-height: 1.5;
    color: inherit;
    background-color: #424242;
    resize: none;
    outline: none;
}

.user-message-bubble-editing div {
    display: flex;
    justify-content: flex-end;

}

.user-message-bubble-editing div button {
    padding: 10px;
    margin: 5px;
    border: 0;
    border-radius: 9999px;
    outline: none;
    cursor: pointer;
    font-size: 14px;

    background-color: #212121;
    color: #ececec;
}
